package com.sx.dao.user;

import com.sx.basic.dao.BasicRepository;
import com.sx.entity.user.AmountEntity;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author AdinZ
 * @date 2020/11/18 18:22
 */
public interface AmountRepository extends BasicRepository<AmountEntity,Long> {

    @Query("select e from AmountEntity e where e.type=?1 and e.id=?2")
    List<AmountEntity> findAmount(AmountEntity.AmountType amountType, long uid);
}
